package gg.ui.view;

import com.google.inject.Inject;
import com.google.inject.Injector;

public class GuiceViewCreator implements ViewCreator {

	private final Injector injector;

	@Inject
	public GuiceViewCreator(Injector injector) {
		this.injector = injector;
	}

	public <T extends GView> T create(Class<T> viewClass) {
		return injector.getInstance(viewClass);
	}

}
